﻿using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Model;

namespace BLL
{
    public class ToolRecord : BaseService<ToolRecordInfo>
    {
        private static readonly DAL.ToolRecord dal = new DAL.ToolRecord();

        public override void SetCurrentRepository()
        {
            this.CurrentRepository = dal;
        }

        public IList<ToolRecordInfo> ToolRecord_GetbyMultiFact(ToolRecordInfo tci, DateTime starttime, DateTime stoptime)
        {
            return dal.ToolRecord_GetbyMultiFact(tci, starttime, stoptime);
        }

        public IList<ToolRecordInfo> ToolRecord_StatisticsbyMultiFact(ToolRecordInfo tci)
        {
            return dal.ToolRecord_StatisticsbyMultiFact(tci);
        }

        public ToolRecordInfo GetbytEsnExis(string tEsn)//, string WorkShop
        {
            return dal.GetbytEsnExis(tEsn);//, WorkShop
        }

        public ToolRecordInfo GetbyTypeandName(string ToolCode, string WorkShop)
        {
            return dal.GetbyTypeandName(ToolCode, WorkShop);  
        }

        public ToolRecordInfo GetbytEsnExisTcode(string tEsn, string tCode)//, string WorkShop
        {
            return dal.GetbytEsnExisTcode(tEsn, tCode);//, WorkShop
        }
    }
}
